package com.example.demo.controller;

import com.example.demo.common.ResultAjax;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/getuser")
    public ResultAjax getUser() {
        System.out.println("do getUser()");
        return ResultAjax.succ("user");
    }

    @RequestMapping("/reg")
    public ResultAjax reg() {
        System.out.println("do reg()");
        return ResultAjax.succ("reg");
    }

    @RequestMapping("/login")
    public ResultAjax login() {
        System.out.println("do login()");
        return ResultAjax.succ("login");
    }

}
